{% extends "base.html" %}


{% block content %}

{% block content-main %}{% endblock %}

<hr />

{% block content-related %}
<div id="sidebar">
  <h1>Archive</h1>
  {% load diario_tags %}
  {% get_diario_month_list as archive %}

  {% if archive %}
    {% for month in archive %}
    <ul>
      <li><a href="{% url diario-archive-month month.year,month|date:"m" %}">{{ month|date:"F, Y" }}</a></li>
    </ul>
    {% endfor %}
  {% else %}
    <p>Empty archive. No entries published.</p>
  {% endif %}
</div>

<div id="tags">
  
  <h1>Tags</h1>
  {% load tagging_tags %}
  {% tags_for_model diario.Entry as tags %}

  <p>
  {% if tags %}
    {% for tag in tags %}
      <a href="{% url diario-tagged-entry-list tag %}">{{ tag }}</a>{% if not forloop.last %},{% endif %}
    {% endfor %}
  {% else %}
    No entries taggeed.
  {% endif %}
  </p>

</div>

{% endblock %}

{% endblock%}
